## Process this file with automake to generate Makefile.in
ACLOCAL_AMFLAGS = -I m4 --install
AM_CFLAGS = $(GLib_CFLAGS) $(libfake437_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/include
DISTCHECK_CONFIGURE_FLAGS = --enable-example
## XXX: texi2dvi and texi2pdf currently fail horribly when working out
##      of a different subdirectory to the texinfo file. Until this is
##      fixed, just subdir the doc generation.
SUBDIRS = doc

libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status --recheck

pkgconfig_DATA = textstream.pc

include_HEADERS = include/textstream.h

lib_LTLIBRARIES = libtextstream.la
libtextstream_la_SOURCES = \
	src/textstream.c \
	src/textstream_event.c \
	src/textstream_event.h
libtextstream_la_LDFLAGS = -no-undefined -version-info 0:0:0
libtextstream_la_LIBADD = $(GLib_LIBS) $(libfake437_LIBS)

if ENABLE_EXAMPLE
noinst_PROGRAMS = example
example_LDADD = $(GLib_LIBS) $(libfake437_LIBS) libtextstream.la
endif
